y = [0]

for i in range(240):
    y.append((y[-1]+1000)/(1+0.004))
for i in range(len(y)):
    print(f'第{i}个月末余额:{y[i]:.2f}元')


